﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SplitOS
{
    public static class Core
    {
        public static string Version = "0.0.4a";
        public static void ReadScanMap()
        {
            Console.WriteLine("Keyboard Mapping: " + Cosmos.Hardware.Global.Keyboard.ReadMapping().ToString());
            Console.WriteLine("Keyboard Scancode: " + Cosmos.Hardware.Global.Keyboard.ReadScancode().ToString());
        }
        public static void PrintLogo()
        {
            int oldleft = Console.CursorLeft;
            Console.CursorLeft = (Console.WindowWidth / 2) - ("--------------------------------------------------------------".Length / 2);
            Console.Write("-------------------------[ "); SplitOS.Utils.SplitOSConsole.Write("Split OS", ConsoleColor.Cyan); Console.WriteLine(" ]-------------------------");
            Console.CursorLeft = (Console.WindowWidth / 2) - ("--------------------------------------------------------------".Length / 2);
            Console.WriteLine("             Because simple is way too difficult!             ");
            Console.CursorLeft = (Console.WindowWidth / 2) - ("--------------------------------------------------------------".Length / 2);
            Console.WriteLine("--------------------------------------------------------------");
            Console.CursorLeft = oldleft;
            Console.WriteLine();
        }
    }
}
